<template>
  <div class="hello">
    <h1>{{msg}}--{{type}}{{count}}</h1>
    <p>{{name}}</p>
    <input
      type="text"
      v-model='name'
    >
    <button @click='add'>+</button>
  </div>
</template>

<script>
import qqq from "./h";
export default {
  name: "HelloWorld",
  props: {
    msg: String,
  },
  setup(props) {
    // ref把一个值类型转成可响应的对象
    // reactive 把一个普通对象转成一个响应式对象
    // let count = ref(666);
    return qqq(props);
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
